﻿using Ids4.Api.Data.Entities;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;

namespace Ids4.Api.Data
{
    public class BaseApplicationDbContext<TDbcontext> : IdentityDbContext<ApplicationUser, ApplicationRole, int> where TDbcontext : DbContext
    {

        public BaseApplicationDbContext(DbContextOptions<TDbcontext> options) : base(options)
        {

        }
        public DbSet<Claims> Claims { get; set; }
    }
    public class BaseApplicationDbContext : BaseApplicationDbContext<BaseApplicationDbContext>
    {
        public BaseApplicationDbContext(DbContextOptions<BaseApplicationDbContext> options) : base(options)
        {
        }
    }
}
